﻿using CBM.Contract.Implementation.Entities;
using System.ComponentModel;

namespace CBM.Contract.Implementation.Entities
{
public class BaseObject:INotifyPropertyChanged
{

    internal void FirePropertyChanged(string propertyName)
    {
        if (!string.IsNullOrEmpty(propertyName))
        {
            if (PropertyChanged != null)
            {
                PropertyChanged.Invoke(this, new PropertyChangedEventArgs(propertyName));
            }
        }
    }

    public event PropertyChangedEventHandler PropertyChanged;
}
}